//
// Created by Administrator on 2021/11/25.
//

#include "Object.h"


/**
 * 相等判断
 * @param o 其他对象
 * @return 地址是否相等
 */
bool Object::equals(Object o) {
    return this == &o;
}

/**
 * 转为字符串
 * @return
 */
std::string Object::toString() {
    std::string clazz = GET_CLASS(__FILE__);
    return StringUtil::format("%s@%p", clazz.c_str(), this);
}

void RegisterFactoryCreate(create_fun, String className) {
    log_info("RegisterFactoryCreate:%s", className.c_str());
}
